package org.tigris.scarab.model;

import java.util.List;

public class AttributeGroup {

    private Integer attributeGroupId; //SCARAB_ATTRIBUTE_GROUP.ATTRIBUTE_GROUP_ID
    private String name; //SCARAB_ATTRIBUTE_GROUP.NAME
    private String description; //SCARAB_ATTRIBUTE_GROUP.DESCRIPTION
    private Integer moduleId; //SCARAB_ATTRIBUTE_GROUP.MODULE_ID
    private Integer issueTypeId; //SCARAB_ATTRIBUTE_GROUP.ISSUE_TYPE_ID
    private boolean active; //SCARAB_ATTRIBUTE_GROUP.ACTIVE
    private boolean dedupe; //SCARAB_ATTRIBUTE_GROUP.DEDUPE
    private Integer preferredOrder; //SCARAB_ATTRIBUTE_GROUP.PREFERRED_ORDER
    private Integer viewRoleId; //SCARAB_ATTRIBUTE_GROUP.VIEW_ROLE_ID
    
    private List<Attribute> m_attributes;

    public Integer getAttributeGroupId() {
        return attributeGroupId;
    }

    public void setAttributeGroupId(Integer attributeGroupId) {
        this.attributeGroupId = attributeGroupId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    protected Integer getIssueTypeId() {
        return issueTypeId;
    }

    protected void setIssueTypeId(Integer issueTypeId) {
        this.issueTypeId = issueTypeId;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public boolean isDedupe() {
        return dedupe;
    }

    public void setDedupe(boolean dedupe) {
        this.dedupe = dedupe;
    }

    public Integer getPreferredOrder() {
        return preferredOrder;
    }

    public void setPreferredOrder(Integer preferredOrder) {
        this.preferredOrder = preferredOrder;
    }

    public Integer getViewRoleId() {
        return viewRoleId;
    }

    public void setViewRoleId(Integer viewRoleId) {
        this.viewRoleId = viewRoleId;
    }
    
    public List<Attribute> getAttributes() {
        return m_attributes;
    }

    protected void setAttributes(List<Attribute> attributes) {
        this.m_attributes = attributes;
    }
}